using namespace std;

#include<iostream>
#include<fstream>
#include<gsl/gsl_rng.h>
#include<math.h>
#include"flysim.h"

cPetriDish::~cPetriDish()
{

}
  cPetriDish::cPetriDish():cFlySim()
  {
          static int iCount=0;
          iIndex=iCount;
          iCount++;
          dFoodQuality=0;
          //for (int i=0;i<gciTotalNumberOfFlies;i++)
          //      WhoIsHere[i]=NULL;
          iHowManyMalesAreHere=0;
          iHowManyFemalesAreHere=0;
  }

void cPetriDish::PrintDetailsOfThisDish()
{
	ofile<<"\nPetri dish details:\nfood quality: "<<dFoodQuality<<"\nNumber of males: "<<iHowManyMalesAreHere<<"\nNumber of females: "<<iHowManyFemalesAreHere;
}


  /*bool cPetriDish::bCheckOurRecordsAreGood()
   {
   int i,j=0,k=0;
   for (i=0;i<gciTotalNumberOfFlies;i++)
   if (WhoIsHere[i]!=NULL)
   {
   if (WhoIsHere[i]->cSex=='M')
   j++;
   if (WhoIsHere[i]->cSex=='F')
   k++;
   }
   if ((j!=iHowManyMalesAreHere)||(k!=iHowManyFemalesAreHere))
   {
   ofile<<"\n Problem with record keeping for Petri Dish.";
   this->PrintDetailsOfThisDish();
   }
   }*/
